import "./fonts/simhei.ttf";

export global MyState {
    in-out property <bool> is_show : true;
}

export component MainView inherits Window {
    default-font-family: "黑体";
    width: 128px;
    height: 64px;
    Rectangle {
        x:0px;
        y:0px;
        width: 100%;
        height: 100%;
        background: transparent;
        border-color: black;
        border-width: 5px;
    }

    Rectangle {
        x:10px;
        y:6px;
        width: 50px;
        height: 50px;
        background: black;
        border-radius: 360px;
        visible: MyState.is_show;

    }

    property <bool> is_show : false;
    Rectangle {
        x:80px;
        y:6px;
        width: 20px;
        height: 20px;
        background: black;
        visible: is_show;
    }

    timer:=Timer{
        interval: 0.5s;
        running: true;
        triggered => {
            is_show = !is_show;
        }
    }

    Text {
        font-family: "SimHei";
        text: "12345";
        color: black;
        font-weight: 900;
        font-size: 40px;
        x:66px;
    }


}